
<%@ page import="user.Professor" %>
<!doctype html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'professor.label', default: 'Professor')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>

<section id="show-professor" class="first">

	<table class="table">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.professorId.label" default="Professor Id" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: professorInstance, field: "professorId")}</td>
				
			</tr>
			
						<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.firstName.label" default="First Name" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: professorInstance, field: "firstName")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.lastName.label" default="Last Name" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: professorInstance, field: "lastName")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.email.label" default="Email" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: professorInstance, field: "email")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.documentId.label" default="Document Id" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: professorInstance, field: "documentId")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.birthDate.label" default="Birth Date" /></td>
				
				<td valign="top" class="value"><g:formatDate date="${professorInstance?.birthDate}" /></td>
				
			</tr>
		

	
			<tr class="prop">
				<td valign="top" class="name"><g:message code="professor.courses.label" default="Courses" /></td>
				
				<td valign="top" style="text-align: left;" class="value">
					<ul>
					<g:each in="${professorInstance.courses}" var="c">
						<li><g:link controller="course" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></li>
					</g:each>
					</ul>
				</td>
				
			</tr>
		
		</tbody>
	</table>
</section>

</body>

</html>
